package com.xcity.game.task.condition;

import com.alibaba.fastjson.annotation.JSONField;
import com.xcity.game.task.TaskCondition;
import com.xcity.game.task.TaskTemplate;

public class TurntableTaskCondition extends TaskCondition {

	@JSONField(serialize = false)
	protected int round;
	
	public TurntableTaskCondition(TaskTemplate template) {
		super(template);
		int[] conds = template.getConditions();
		round = conds[0];
	}

	public int getRound() {
		return round;
	}

	public void setRound(int round) {
		this.round = round;
	}

	@Override
	public int toClientCond() {
		return round;
	}


}
